package view;

import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.TitledBorder;

public class ProAddSupPanel extends JPanel {
	private JLabel lblAddress_AddSup;
	private JLabel lblID_AddSup;
	private JLabel lblName_AddSup;
	private JLabel lblPhone_AddSup;
	private JTextField tfID_AddSup;
	private JTextField tfName_AddSup;
	private JTextField tfPhone_AddSup;
	private JTextField tfAddress_AddSup;
	private JButton btnCancel_AddSup;
	private JButton btnAdd_AddSup;
	private JPanel panelInfor_AddSup;

	private static final long serialVersionUID = 1L;

	public ProAddSupPanel() {
		initComponents();
	}

	private void initComponents() {

		panelInfor_AddSup = new JPanel();
		lblPhone_AddSup = new JLabel();
		lblName_AddSup = new JLabel();
		lblAddress_AddSup = new JLabel();
		tfID_AddSup = new JTextField();
		tfName_AddSup = new JTextField();
		tfPhone_AddSup = new JTextField();
		tfAddress_AddSup = new JTextField();
		lblID_AddSup = new JLabel();
		btnAdd_AddSup = new JButton();
		btnCancel_AddSup = new JButton();

		setBackground(new java.awt.Color(255, 255, 255));
		setLayout(null);

		panelInfor_AddSup.setBackground(new java.awt.Color(255, 255, 255));
		panelInfor_AddSup.setBorder(BorderFactory.createTitledBorder(null, "Information",
				TitledBorder.DEFAULT_JUSTIFICATION,
				TitledBorder.DEFAULT_POSITION, new java.awt.Font("Calibri", 1,
						12)));
		panelInfor_AddSup.setLayout(null);

		lblPhone_AddSup.setFont(new java.awt.Font("Calibri", 0, 16));
		lblPhone_AddSup.setText("Phone:");
		panelInfor_AddSup.add(lblPhone_AddSup);
		lblPhone_AddSup.setBounds(370, 30, 50, 20);

		lblName_AddSup.setFont(new java.awt.Font("Calibri", 0, 16));
		lblName_AddSup.setText("Supplier Name:");
		panelInfor_AddSup.add(lblName_AddSup);
		lblName_AddSup.setBounds(20, 60, 110, 20);

		lblAddress_AddSup.setFont(new java.awt.Font("Calibri", 0, 16));
		lblAddress_AddSup.setText("Address:");
		panelInfor_AddSup.add(lblAddress_AddSup);
		lblAddress_AddSup.setBounds(370, 60, 70, 20);
		panelInfor_AddSup.add(tfID_AddSup);
		tfID_AddSup.setBounds(150, 30, 170, 20);
		panelInfor_AddSup.add(tfName_AddSup);
		tfName_AddSup.setBounds(150, 60, 170, 20);
		panelInfor_AddSup.add(tfPhone_AddSup);
		tfPhone_AddSup.setBounds(470, 30, 170, 20);
		panelInfor_AddSup.add(tfAddress_AddSup);
		tfAddress_AddSup.setBounds(470, 60, 170, 20);

		lblID_AddSup.setFont(new java.awt.Font("Calibri", 0, 16));
		lblID_AddSup.setText("ID:");
		panelInfor_AddSup.add(lblID_AddSup);
		lblID_AddSup.setBounds(20, 30, 50, 20);

		add(panelInfor_AddSup);
		panelInfor_AddSup.setBounds(0, 0, 690, 100);

		btnAdd_AddSup.setIcon(new ImageIcon("icon/add.png"));
		btnAdd_AddSup.setText("Add");
		btnAdd_AddSup.setToolTipText("");
		add(btnAdd_AddSup);
		btnAdd_AddSup.setBounds(260, 110, 90, 30);

		btnCancel_AddSup.setIcon(new ImageIcon("icon/cancle.png"));
		btnCancel_AddSup.setText("Cancel");
		add(btnCancel_AddSup);
		btnCancel_AddSup.setBounds(370, 110, 90, 30);
	}
}
